import request from "@/utils/request";

export function listResources(param) {
    return request({
        url:'/admin/resources',
        method:'get',
        params:param
    })
}

export function saveOrUpdateResource(data) {
    return request({
        url:'/admin/resources',
        method:'post',
        data:data
    })
}

export function deleteResource(resourceId) {
    return request({
        url:'/admin/resources/'+resourceId,
        method:'delete'
    })
}
